<?php
//体现状态文字描述
namespace bc\model;
use bc\ar\MActiveRecord;

class AdvanceStatusModel extends MActiveRecord{

    public $autoId='advance_status_id';

    public static function tableName()
    {
        return "{{%advance_status}}";
    }

    /**
     * Created by Mr.hu.
     * Description:获取所有的状态
     */
    public function allStatusList()
    {
        $list=$this->find()->asArray()->all();
        return array_column($list,'status_name','advance_status_id');
    }
}